<?php
/**
 * Created by PhpStorm.
 * User: 长春
 * Date: 2016/9/27
 * Time: 23:41
 */
class BaseAction extends Action{
    public function _initialize(){
        if(!session('?userid')){
            $this->redirect(GROUP_NAME.'/Index/index');
        }
    }
}